package test;
import java.util.*;
public class Calc{
    
    public static void main(String args[]){
        ArrayList<String> question=new ArrayList<String>();
        System.out.println("请输入要计算的式子个数:");
        Scanner sc=new Scanner(System.in);
        int count=sc.nextInt();
        System.out.println("请输入你要求解的式子:");
        for(int i=0;i<count;i++){
            sc=new Scanner(System.in);
            question.add(sc.nextLine());
        }
        for(int i=0;i<count;i++){
            System.out.print(question.get(i)+"=");
            CalcFunction calc = new CalcFunction();;
            calc.calc(question.get(i));
        }
    }
}